package com.ruoyi.mp.controller;

import com.ruoyi.common.core.utils.poi.ExcelUtil;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.db.domain.system.PcPromptConfig;
import com.ruoyi.mp.service.IPcPromptConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 【请填写功能名称】Controller
 * 
 * @author ruoyi
 * @date 2022-09-05
 */
@Api(value = "【请填写功能名称】",tags ="【请填写功能名称】")
@RestController
@RequestMapping("/mp/prompt/config")
public class PcPromptConfigController extends BaseController
{
    @Autowired
    private IPcPromptConfigService pcPromptConfigService;

    /**
     * 查询【请填写功能名称】列表
     */
    @ApiOperation(value = "查询【请填写功能名称】列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="pcPromptConfig",value="【请填写功能名称】",paramType="form")
    })
    @GetMapping("/list")
    public AjaxResult list(PcPromptConfig pcPromptConfig)
    {
        try {
            List<PcPromptConfig> list = pcPromptConfigService.selectPcPromptConfigList(pcPromptConfig);
            return AjaxResult.success(list);
        }catch (Exception e){
            return AjaxResult.error(e.getMessage());
        }
    }

}
